package Terminal.View.Fattura;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class JIntestazioneFattura extends JPanel{

	private static final long serialVersionUID = 1L;
	private JLabel logo = new JLabel();
	private JLabel payoff = new JLabel("Time Logging");	
		
	public JIntestazioneFattura()
	{
		super();
		this.createComponents();
	}

	private void createComponents() {
	
		this.setBounds(1, 1, 828, 270);
		
		this.setBackground(Color.white);
		this.setLayout(null);

		this.setLogo();
		this.setPayoff();
		
	    this.add(logo);
	    this.add(payoff);
	}
	
	private void setLogo()
	{
		logo.setIcon(new ImageIcon("src\\Terminal\\UI\\img\\TLLogo.gif"));
		logo.setBounds(50, 20, 150, 150);
	}
	
	private void setPayoff()
	{
		payoff.setBounds(250, 20, 600, 150);
	    payoff.setFont(new Font(this.getFont().getName(), Font.ITALIC, 40) );	
	}
	
	

}
